export const useToTel = tel => tel.replace(tel.substring(3, 7), "xxxx")
export const useTestTel = tel => /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(tel)
export const useNewDate = t => {
	let date = t ? new Date(t) : new Date();
	return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
}
